package cn.edu.zut.cs.Dao;

import cn.edu.zut.cs.Model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface  UserMapper {
    //插入用户
    int zhuceuser(@Param("username") String username,@Param("pwd") String pwd,@Param("registetime") String registetime,@Param("phone") String phone);

    //完善用户信息
    int updateuserinfo(@Param("nickname") String nickname,@Param("username") String username,@Param("headimage") String headimage,@Param("personalsignature") String personalsignature,@Param("locals") String locals,@Param("sex") String sex);

    //修改密码
    int updatepwd(@Param("username") String username,@Param("pwd") String pwd);

    //退出
    int logout(@Param("username") String username,@Param("logouttime")String logouttime);

    User findbyusernameandpwd(String username);

    //模糊查询
    List<User> findBymohu(String uname);
}
